# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-test-exit
pkgver=0.11
pkgrel=6
pkgdesc="Test whether code exits without terminating testing."
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/Test-Exit"
depends=('perl-return-multilevel')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/Test-Exit-$pkgver.tar.gz")
sha512sums=('cd2ebb191f1d0c64017df9c4de50539985b96251222d88c644dafeb64b7373afdf28cd84d1c58caa78ee5704650f94efdd0e2971bbba962c1aeb799e812f26e4')

build() {
  cd Test-Exit-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Test-Exit-$pkgver
  make test
}

package() {
  cd Test-Exit-$pkgver
  make DESTDIR="$pkgdir" install
}
